package com.artpri.action.user;

import com.artpri.action.BaseAction;

/**
 * 激活账户
 * @author ZhangSi
 */
public class ActivateUserAction extends BaseAction{

	private static final long serialVersionUID = -4796940639704751112L;

	private Integer id;
	
	private String data;
	
	private String redirect;
	

	@Override
	public String execute() throws Exception {
		
		boolean b = getUserService().activateUser(id, data);
		
		return b ? SUCCESS : ERROR;
	}


	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public String getRedirect() {
		return redirect;
	}
	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}
}
